package com.invokestatic.shooter.Screens;

import java.util.Random;

import com.badlogic.gdx.graphics.Color;
import com.invokestatic.shooter.Art;
import com.invokestatic.shooter.Input;

public class MenuScreen extends Screen {
	int time = 0, textRotation = -15, adjustment = 1;
	
	
	@Override
	public void render() {
		spriteBatch.begin();
		draw(Art.menu_bg,0, 0);
		drawStringRoatatedCentered("TAP to Play!", 1280/2, 720/2, textRotation, 2, 2);
		drawString("> InvokeStatic 2013", 2,720-18);
		spriteBatch.end();
	}

	@Override
	public void tick(Input input) {
		time++;
		input.tick();
		if(textRotation == 15) {
			adjustment = -1;
		} else if(textRotation == -15) {
			adjustment = 1;
		}
		textRotation += adjustment;
		
		if(input.buttons[Input.GENERAL]) {
			setScreen(new TransitionScreen(new GameScreen()));
		}
		
	}

}
